<%@page import="cn.zindesign.platform.model.*" %>
<%@ page contentType="text/html; charset=utf-8" language="java"  %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>User管理</title>
<link href="/styles/global.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/scripts/application.js" ></script>
</head>
<body >
<div >
  <form id="listManage" name="listManage" action="/platform/userAction!queryList" method="post" >
    <table width="100%" border="0" cellpadding="0" cellspacing="0" id="toolbar">
      <tr style="background-color:#696969">
        <td width="482" ><div id="h"><img  src="/styles/images/left/downgreen.gif" width="18" height="18" /></div>
          <div id="t" class="lable_1">User管理</div>
          <div id="t" class="lable_1" style="margin-left:20px;">快速查找：</div>
          <div id="s">
            <input name="keyword" type="text" value="<s:property value="#request.keyword"/>"/></div>
          <div id="s">
            <input name="search_submit" type="submit" value="查找" />
          </div></td>
        <td width="*" ><input style="float:right;" type="button" name="batchDelete" id="button" onclick="javascript:batchDel('/platform/userAction!batchDelete?p=<s:property value="#request.page.page"/>&t=<s:property value="#request.page.totals"/>','ids',document.getElementById('listManage'));" value="批量删除" />
          <input style="float:right;" type="button" name="button" id="button" onclick="javascript:window.location.href='/platform/userAction!toAdd'" value="新增" /></td>
      </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
      <tr style="background-color:#e9e9e9">
        <th width="3%">选项</th>
        <th width="14%">[ID]用户名</th>
        <th width="15%">真实姓名</th>
        <th width="23%">时间</th>
        <th width="28%">状态</th>
        <th width="17%">操作</th>
      </tr>
      <s:iterator value="#request.list" id="l">
        <tr onmouseover="javascript:this.className='trClass_b'" onmouseout="javascript:this.className='trClass_a'">
          <td align="center"><input type="checkbox" name="ids" id="" value="<s:property value="#l.id"/>" /></td>
          <td align="center">[
            <s:property value="#l.id"/>
            ]
            <s:property value="#l.loginname"/></td>
          <td align="center"><s:property value="#l.name"/></td>
          <td align="center"><s:property value="#l.createTime"/></td>
          <td align="center"><s:if test="#l.flag==0">未审核</s:if>
            <s:else>已审核</s:else></td>
          <td align="center">
          <a href="/platform/userAction!toUpdate?p=<s:property value="#request.page.page"/>&t=<s:property value="#request.page.totals"/>&keyword=<s:property value="#request.keyword"/>&user.id=<s:property value="#l.id"/>">修改</a> <a href="javascript:;" onclick="javascript:if (confirm('确定执行[删除]操作?')){window.location='/platform/userAction!delete?p=<s:property value="#request.page.page"/>&t=<s:property value="#request.page.totals"/>&keyword=<s:property value="#request.keyword"/>&user.id=<s:property value="#l.id"/>';}">删除</a></td>
        </tr>
      </s:iterator>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table2">
      <tr style="background-color:#e9e9e9">
        <td width="21%"><input type="checkbox" id="setAllCheck" onclick="javascript:setAllCheckboxState('ids',this.checked);" />
          全选
          <input type="checkbox" id="setAllCheck" onclick="javascript:setContraryCheckboxState('ids');" />
          反选</td>
        <td width="79%" align="right"><div id="go">
            <input name="go_num" type="submit" value="跳转" />
          </div>
          <div id="go">
            <input name="p" type="text" style="width:20px; border:#999 1px solid;" />
          </div>
          <div id="p"><a href="/platform/userAction!queryList?p=<s:property value="#request.page.allpage"/>&t=<s:property value="#request.page.totals"/>&keyword=<s:property value="#request.keyword"/>"><img src="/widgets/simpletable/images/lastPage.gif" width="15" height="13" border="0" title="末页" /></a></div>
          <div id="p"><a href="/platform/userAction!queryList?p=<s:property value="#request.page.nextPage"/>&t=<s:property value="#request.page.totals"/>&keyword=<s:property value="#request.keyword"/>"><img src="/widgets/simpletable/images/nextPage.gif" width="14" height="13" border="0" title="下一页" /></a></div>
          <div id="p"><a href="/platform/userAction!queryList?p=<s:property value="#request.page.prePage"/>&t=<s:property value="#request.page.totals"/>&keyword=<s:property value="#request.keyword"/>"><img src="/widgets/simpletable/images/prevPage.gif" width="15" height="13" border="0" title="上一页" /></a></div>
          <div id="p"><a href="/platform/userAction!queryList?p=1&t=<s:property value="#request.page.totals"/>&keyword=<s:property value="#request.keyword"/>"><img src="/widgets/simpletable/images/firstPage.gif" width="15" height="13" border="0" title="首页" /></a></div>
          <div id="p">当前
            <s:property value="#request.page.page"/>
            /
            <s:property value="#request.page.allpage"/>
            页，每页
            <s:property value="#request.page.perPageNum"/>
            条记录，共
            <s:property value="#request.page.totals"/>
            条记录</div></td>
      </tr>
    </table>
  </form>
</div>
</body>
</html>
